package si.yun.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-07-28 19:32:23
 * @Description 后端用户表
 */
@Entity
@Table ( name ="sy_user" )
public class SyUser  implements Serializable {
	private static final long serialVersionUID =  199279380748648845L;

	/**
	 * 自增主键
	 */
   	@Column(name = "user_id" )
	private int userId;

	/**
	 * 用户真实姓名
	 */
   	@Column(name = "true_name" )
	private String trueName;

	/**
	 * 性别
	 */
   	@Column(name = "sex" )
	private String sex;

	/**
	 * 账户账号唯一
	 */
   	@Column(name = "account" )
	private String account;

	/**
	 * 头像url路径
	 */
   	@Column(name = "avatar_url" )
	private String avatarUrl;

	/**
	 * 用户邮箱地址
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 账户登陆密码
	 */
   	@Column(name = "password" )
	private String password;

	/**
	 * 备注
	 */
   	@Column(name = "remark" )
	private String remark;

	/**
	 * 外键
	 */
   	@Column(name = "education_id" )
	private int educationId;

	/**
	 * 是否启用（1Yes.2No）
	 */
   	@Column(name = "enabled" )
	private int enabled;

	/**
	 * 手机号
	 */
   	@Column(name = "phone_number" )
	private int phoneNumber;

	/**
	 * 身份证号码
	 */
   	@Column(name = "Id_card" )
	private String idCard;

	/**
	 * 出生日期
	 */
   	@Column(name = "birth_date" )
	private Date birthDate;

	/**
	 * 账户余额（外键）
	 */
   	@Column(name = "money_id" )
	private int moneyId;

	/**
	 * 部门id（外键）
	 */
   	@Column(name = "dept_id" )
	private int deptId;

	/**
	 * 个性签名
	 */
   	@Column(name = "freestyle" )
	private String freestyle;

	/**
	 * 账户注册时间
	 */
   	@Column(name = "register_time" )
	private Date registerTime;

	/**
	 * 账户注册时ip地址
	 */
   	@Column(name = "register_ip" )
	private String registerIp;

	/**
	 * 1.使用中 2.已注销 3.冻结
	 */
   	@Column(name = "status" )
	private int status;

	/**
	 * 工资
	 */
   	@Column(name = "wages" )
	private BigDecimal wages;

	/**
	 * 等级（1，2，3等)
	 */
   	@Column(name = "grade" )
	private int grade;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getEducationId() {
        return educationId;
    }

    public void setEducationId(int educationId) {
        this.educationId = educationId;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }

    public int getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(int phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public int getMoneyId() {
        return moneyId;
    }

    public void setMoneyId(int moneyId) {
        this.moneyId = moneyId;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public String getFreestyle() {
        return freestyle;
    }

    public void setFreestyle(String freestyle) {
        this.freestyle = freestyle;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public BigDecimal getWages() {
        return wages;
    }

    public void setWages(BigDecimal wages) {
        this.wages = wages;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }
}
